package com.mccrea.pattern.mediator;

/**
 * @Classname Colleague
 * @Description 抽象同事类
 * @Date 2021/5/24 0024 11:18
 * @Created by Mccrea_Gao
 */
public abstract class Colleague {

    protected Mediator mediator;

    public void setMediator(Mediator mediator) {
        this.mediator = mediator;
    }

    public abstract void receive();

    public abstract void send();

}
